package com.itheima.branch;

import java.util.Scanner;

public class ifDemo1 {
    public static void main(String[] args) {
         test();
         test2();
         test3();
    }
    public static void test() {
        int age = 17;
        if(age > 18){
            System.out.println("可以投票");
        }
        System.out.println("洗洗睡吧");
    }
    public static void test2() {
        int money = 90;
        if(money>=80){
            System.out.println("转账成功");
        }else{
            System.out.println("余额不足");
        }
    }
    public static void test3() {
        System.out.println("请您录入该员工的分数：");
        Scanner sc = new Scanner(System.in);
        int score=sc.nextInt();
        if(score>=90&&score<=100){
            System.out.println("该员工属于优秀员工");
        }else if(score>=80&&score<90){
            System.out.println("该员工属于良好员工");
        }else if(score>=60&&score<80){
            System.out.println("该员工属于一般员工");
        }else if(score>=0&&score<60){
            System.out.println("该员工属于差员工");
        }
        else {
            System.out.println("输入的分数有误");
        }
    }
}
